#!/bin/bash

echo "announce listen 42 seed [testFile2.txt 42 1024 12345 testFile.txt 43 1024 12346] leech []" | nc localhost $1 
#echo "announce listen 42 seed [] leech []" | nc localhost $1 
echo -e "\n"
echo "look [filename=\"testFile.txt\"]" | nc localhost $1
echo -e "\n"
echo "getfile 12345" | nc localhost $1
echo -e "\n"
echo "update seed [12346] leech [12347]" | nc localhost $1 
nc localhost $1
